package com.sumainfor.wx.system.epc.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.feign.ZuulFeign.ZuulFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/6/12 14:18
 * @Description:
 */
@RestController
@RequestMapping("/epc/message")
public class MessageController {

    @Autowired
    ZuulFeign ZuulFeign;

    /**
     * 功能描述: 
     * 根据角色获取消息列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/6/12 14:19
     */
    @PostMapping("/getMessageList")
    public JsonResult getMessageList(@RequestBody Map<String,Object> params){
        return ZuulFeign.getMessageList(params);
    }

}
